//
//  MomentarySliderView.h
//  Podcopter
//
//  Created by Aaron Thompson on 2/22/10.
//  Copyright 2010 Vanderbilt University. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MomentarySliderView;

@protocol MomentarySliderViewDelegate

- (void)momentarySlider:(MomentarySliderView *)slider valueChanged:(float)newValue;

@end


@interface MomentarySliderView : UIView {
	float value;
	float minValue;
	float maxValue;
	float defaultValue;
	float decaySpeed;
	NSTimer *decayTimer;
	
	id<MomentarySliderViewDelegate> delegate;
}

@property (assign, setter=setValue:) float value;
@property (assign) float minValue;
@property (assign) float maxValue;
@property (assign) float decaySpeed;

@property (nonatomic, assign) id<MomentarySliderViewDelegate> delegate;

- (void)decayValue:(id)object;
- (void)cancelDecayingValue;

@end
